<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link> -->
        <link rel="stylesheet" href="../printCss/print.css" type="text/css"></link>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/sysPrint/printCss/print.css" />
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/sysReport/report.js"></script>
    <script type="text/javascript">
		$(function(){
			$("#dotted :last ").remove()
		});
	</script>
	<script type="text/javascript">
        window.onload=function name(){
          window.print();
          window.close();
    }
     </script> 
</head>
<body>
	<div id="xtlxquerya">
		<div id="main" >
			<form action="" >
				<table border="1" cellpadding="0" cellspacing="0" border="1px" width="710px">  
				   <tr>
						<th colspan='6' class="b" style="font-size:20px;">收款单</th>
					</tr>
				<tr>
				<td class="td_right"><strong>客户名称:</strong></td>
				<td class="td_left" colspan=3>${data.CLIENTS_NAME}</td>
				<td class="td_right"><strong>收款单号:</strong></td>
				<td class="td_left" width="100px">${data.DJ_CODE}</td>
				</tr>
						
				<tr>
				<td class="td_right"><strong>客户编号:</strong></td>
				<td class="td_left"  width="100px">${data.CLIENT_ID }</td>
				<td class="td_right"><strong>部门编号:</strong></td>
				<td class="td_left"width="100px">未读</td>
				<td class="td_right"><strong>收款方式:</strong></td>
				<td class="td_left">${data.SK_CLASS }</td>
				</tr>
						
				<tr>
				<td class="td_right"><strong>录单日期:</strong></td>
				<td class="td_left">${data.INPUT_DATE }</td>
				<td class="td_right"><strong>收款人：</strong></td>
				<td class="td_left">未读</td>
				<td class="td_right"><strong>凭证编号：</strong></td>
				<td class="td_left">${data.PZ_ID }</td>
				</tr>
						
				<tr>
				<td class="td_right"><strong>站点编号:</strong></td>
				<td class="td_left">${data.STATION_ID }</td>
				<td class="td_right"><strong>支票汇票：</strong></td>
				<td class="td_ct">未读</td>
				<td class="td_right"><strong>收款金额:</strong></td>
				<td class="td_ct" >${data.REAL_MONEY }</td>
				</tr>
			   <tr>
				<td class="td_right"><strong>收款大写:</strong></td>
				<td class="td_ct" colspan=3 >未读</td>
				<td class="td_right"><strong>使用预收:</strong></td>
				<td class="td_ct" >${data.MONEY_PRE }</td>
				</tr>	
				<tr>
				<td class="td_right"><strong>备注:</strong></td>	
			    <td class="td_left" colspan="3">${data.MEMO }</td>
			    
			    <td class="td_right"><strong>业务员:</strong></td>	
			    <td class="td_left">未读</td>
				</tr>
				</table>
				</div>
			</form>	
</div>
	 <table border="0" cellpadding="10" cellspacing="0" width="710px" line:height=6px>
					<tr>
						<td width:100px><strong>录单日期</strong></td>
						<td width:100px><strong>批销单号</strong></td>
						<td  width:100px><strong>应收款</strong></td>
						<td width:90px><strong>已收款</strong></td>
						<td  width:90px><strong>本次收款</strong></td>
						<td   width:100px><strong>本次金额</strong></td>			
						<td  width:90px><strong>备注</strong></td>
					</tr>
					 <tr>
				   	<td colspan="8"><hr width=710px align="left" /></td></tr>
					<c:forEach items="${dataList}" var="temp">
					 <tr>
                        	<td class="td_ct">${data.INPUT_DATE}</td>
							<td class="td_ct">${temp.DJ_CODE}</td>
							<td class="td_right">${temp.YSK}</td>
							<td class="td_right">${temp.YSK}</td>
							<td class="td_right">${temp.BCSK}</td>
							<td class="td_right">${temp.NOW_MONEY}</td>
							<td class="td_ct">${temp.MEMO}</td>
						</tr>
					<tr id="dotted">
				        <td colspan="8"><hr width=710px align="left" style="border: 1px dotted;"  /></td>
				       </tr>
					</c:forEach>
						<td colspan="8"><hr width=710px align="left"   /></td>				
				</table>
<div style="margin-top:20px">
				<lable><strong>户名：</strong></lable>未读<lable></lable>
				<lable>&nbsp;&nbsp;&nbsp;&nbsp;<strong>联系人：</strong></lable><lable>未读</lable>
				<lable>&nbsp;&nbsp;&nbsp;&nbsp;<strong>邮编：</strong></lable><lable>未读</lable>
			    <lable>&nbsp;&nbsp;&nbsp;&nbsp;<strong>地址：</strong></lable><lable>未读</lable>
			    <lable>&nbsp;&nbsp;&nbsp;&nbsp;<strong>电话：</strong></lable><lable>未读</lable>
			    <lable>&nbsp;&nbsp;&nbsp;&nbsp;<strong>传真：</strong></lable><lable>未读</lable>
			    </div></br>
			    
			 <%! int count = 0;%>
       		 <% count++; %>
       		 该页面已被打印<%= count %>次
</body>
</html>